<template>
  <div>
    <CategorySelector :disabled="!isShowAttrList" />
    <AttrList v-if="isShowAttrList" @setIsShowAttrList="isShowAttrList = $event"
 
    />
    <SaveAttrOrSetAttr v-else @setIsShowAttrList="isShowAttrList = $event" />
  </div>
</template>

<script lang="ts">
export default {
  name: "XAttr",
};
</script>

<script lang="ts" setup>
import CategorySelector from "@/components/CategorySelector/index.vue";
import AttrList from "./components/AttrList.vue";
import SaveAttrOrSetAttr from "./components/SaveAttrOrSetAttr.vue";
import { ref } from "vue";

const isShowAttrList = ref(true);
</script>

<style scoped></style>
